Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: hide GetObjectResumableUploadOffset interface #220

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

constwz
Copy link
Contributor

@constwz constwz commented Jan 24, 2024

Description

add a description of your changes here...

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@constwz constwz force-pushed the perf-hide-ResumableUploadOffset branch 2 times, most recently from 9f501a0 to d9dedc2 Compare January 24, 2024 03:19
@@ -56,7 +56,7 @@ type IObjectClient interface {
ComputeHashRoots(reader io.Reader, isSerial bool) ([][]byte, int64, storageTypes.RedundancyType, error)
CreateFolder(ctx context.Context, bucketName, objectName string, opts types.CreateObjectOptions) (string, error)
GetObjectUploadProgress(ctx context.Context, bucketName, objectName string) (string, error)
GetObjectResumableUploadOffset(ctx context.Context, bucketName, objectName string) (uint64, error)
//GetObjectResumableUploadOffset(ctx context.Context, bucketName, objectName string) (uint64, error)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can it be just deleted?

offset, err := s.Client.GetObjectResumableUploadOffset(s.ClientContext, bucketName, objectName)
s.Require().NoError(err)
s.Require().Equal(offset, partSize16MB)
//offset, err := s.Client.getObjectResumableUploadOffset(s.ClientContext, bucketName, objectName)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@constwz constwz force-pushed the perf-hide-ResumableUploadOffset branch from d9dedc2 to e84e32b Compare January 24, 2024 06:14
@constwz constwz merged commit 8bfc2c9 into master Jan 25, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants